<div id="main-content">
    <div class="container">
    	<div class="row">
        		<div id="content" class="col-lg-12">
        			<!-- PAGE HEADER-->
                        <div class="row">
    							<div class="col-sm-12">
    								<div class="page-header">
    									<div class="clearfix">
    										<h3 class="content-title pull-left">Hệ thống</h3>
    									</div>
    								</div>
    							</div>
    					</div>
                   <!-- SIMPLE STRIPED -->
            	<div class="row">
                <?php if(!empty($giaovien)) { ?>
            		<div class="col-md-6">
            			<!-- BOX -->
            			<div class="box border pink">
            				<div class="box-title">
            					<h4><i class="fa fa-table"></i>Giáo viên mới</h4>
            					<div class="tools">
            						<a href="javascript:;" class="collapse">
            							<i class="fa fa-chevron-up"></i>
            						</a>
            						<a href="javascript:;" class="remove">
            							<i class="fa fa-times"></i>
            						</a>
            					</div>
            				</div>
            				<div class="box-body">
            					<table class="table">
            						<thead>
            						  <tr>
            							<th>STT</th>
            							<th>Email</th>
            							<th>Ngày đăng kí</th>
            							<th>Họ và tên</th>
            						  </tr>
            						</thead>
            						<tbody>
                                    <?php $i=0; foreach ($giaovien as $thanhvien ): $i++; ?>
            						  <tr>
            							<td><?php echo $i; ?></td>
            							<td><?php echo $thanhvien->email; ?></td>
            							<td><?php
                                            echo $thanhvien->created;
                                         ?></td>
            							<td><?php echo $thanhvien->name; ?></td>
            						  </tr>
            						</tbody>
                                    <?php endforeach; ?>
            					  </table>
            				</div>
            			</div>
            			<!-- /BOX -->
            		</div>
                    <?php } ?>
                    <?php if(!empty($hocsinh)) : ?>
            		<div class="col-md-6">
            			<!-- BOX -->
            			<div class="box border blue">
            				<div class="box-title">
            					<h4><i class="fa fa-table"></i>Học sinh mới</h4>
            					<div class="tools">
            						<a href="javascript:;" class="collapse">
            							<i class="fa fa-chevron-up"></i>
            						</a>
            						<a href="javascript:;" class="remove">
            							<i class="fa fa-times"></i>
            						</a>
            					</div>
            				</div>
            				<div class="box-body">
            					<table class="table table-striped">
            						<thead>
            						  <tr>
            							<th>STT</th>
            							<th>Email</th>
            							<th>Ngày đăng kí</th>
            							<th>Họ và tên</th>
            						  </tr>
            						</thead>
            						<tbody>
                                    <?php $i=0; foreach ($hocsinh as $hs ): $i++; ?>
            						  <tr>
            							<td><?php echo $i; ?></td>
            							<td><?php echo $hs->email; ?></td>
            							<td><?php echo $hs->created; ?></td>
            							<td><?php echo $hs->name; ?></td>
            						  </tr>
                                     <?php endforeach; ?>
            						</tbody>
            					  </table>
            				</div>
            			</div>
            			<!-- /BOX -->
            		</div>
                    <?php endif; ?>
            	</div>
            	<!-- SIMPLE STRIPED -->
            	<div class="row">
                <?php if(!empty($yeucau)) { ?>
            		<div class="col-md-6">
            			<!-- BOX -->
            			<div class="box border pink">
            				<div class="box-title">
            					<h4><i class="fa fa-table"></i>5 Yêu cầu mới nhất</h4>
            					<div class="tools">
            						<a href="javascript:;" class="collapse">
            							<i class="fa fa-chevron-up"></i>
            						</a>
            						<a href="javascript:;" class="remove">
            							<i class="fa fa-times"></i>
            						</a>
            					</div>
            				</div>
            				<div class="box-body">
            					<table class="table">
            						<thead>
            						  <tr>
            							<th>STT</th>
            							<th>Email</th>
            							<th>Điện thoại</th>
            							<th>Họ và tên</th>
            						  </tr>
            						</thead>
            						<tbody>
                                    <?php $i=0; foreach ($yeucau as $yc ): $i++; ?>
            						  <tr>
            							<td><?php echo $i; ?></td>
            							<td><a href="#"><?php echo $yc->email; ?></a></td>
            							<td><?php
                                            echo $yc->phone;
                                         ?></td>
            							<td><?php echo $yc->name; ?></td>
            						  </tr>
            						</tbody>
                                    <?php endforeach; ?>
            					  </table>
            				</div>
            			</div>
            			<!-- /BOX -->
            		</div>
                    <?php } ?>
                    <?php if(!empty($hocsinh)) : ?>
            		<div class="col-md-6">
            			<!-- BOX -->
            			<div class="box border blue">
            				<div class="box-title">
            					<h4><i class="fa fa-table"></i>Email mới</h4>
            					<div class="tools">
            						<a href="javascript:;" class="collapse">
            							<i class="fa fa-chevron-up"></i>
            						</a>
            						<a href="javascript:;" class="remove">
            							<i class="fa fa-times"></i>
            						</a>
            					</div>
            				</div>
            				<div class="box-body">
            					<table class="table table-striped">
            						<thead>
            						  <tr>
            							<th>STT</th>
            							<th>Email</th>
            							<th>Ngày đăng kí</th>
            							<th>Họ và tên</th>
            						  </tr>
            						</thead>
            						<tbody>
                                    <?php $i=0; foreach ($hocsinh as $hs ): $i++; ?>
            						  <tr>
            							<td><?php echo $i; ?></td>
            							<td><?php echo $hs->email; ?></td>
            							<td><?php echo $hs->created; ?></td>
            							<td><?php echo $hs->name; ?></td>
            						  </tr>
                                     <?php endforeach; ?>
            						</tbody>
            					  </table>
            				</div>
            			</div>
            			<!-- /BOX -->
            		</div>
                    <?php endif; ?>
            	</div>
            	<!-- SIMPLE STRIPED -->
      			</div>
      			<!-- /PAGE HEADER -->
    		</div>
    	</div>
    </div>
</div>
<style>
.box-body
{
    min-height:250px;
}
</style>